import request from '@/utils/request'

//查询员工列表
export const queryPageApi = (page,pageSize ,name,gender,begin,end) => request.get(`/emps?&page=${page}&pageSize=${pageSize}&name=${name}&gender=${gender}&begin=${begin}&end=${end}`)
 
//添加员工1
export const addEmpApi = (data) => request.post('/emps', data)

//根据ID查询员工信息1
export const queryEmpByIdApi = (id) => request.get(`/emps/${id}`)

//修改员工信息1
export const updateByIdApi = (data) => request.put('/emps', data)

//批量删除员工1
export const deleteByIdsApi=(ids)=>{
return request.delete('/emps',{params:{ids:ids.join(',')}})
}

